//
//  DKWCustomerServiceCell.m
//  CreditHub
//
//  Created by chenglang on 2024/9/15.
//

#import "DKWCustomerServiceCell.h"
#import "LoanGuideViewController.h"
#import "DKWCreditLevelViewController.h"

@implementation DKWCustomerServiceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
}
- (IBAction)clickGuide:(id)sender {
    
    if( [UserInfoModel isLogin] ){
        LoanGuideViewController *vc = [[LoanGuideViewController alloc] init];
        vc.type = 2;
        [[UIView xhl_getTopViewController].navigationController pushViewController:vc animated:YES];
    }else{
        [UserInfoModel login];
    }
    
}
- (IBAction)clickMaterials:(id)sender {
    
    if( [UserInfoModel isLogin] ){
        LoanGuideViewController *vc = [[LoanGuideViewController alloc] init];
        [[UIView xhl_getTopViewController].navigationController pushViewController:vc animated:YES];
    }else{
        [UserInfoModel login];
    }
}
- (IBAction)clickUsers:(id)sender {
    if( [UserInfoModel isLogin] ){
        DKWCreditLevelViewController *vc = [[DKWCreditLevelViewController alloc] init];
        vc.number = self.labelNumber.text;
        vc.detailId = self.detailId;
        [[UIView xhl_getTopViewController].navigationController pushViewController:vc animated:YES];
    }else{
        [UserInfoModel login];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
